<template>
  <div class="bg">
      <p class="title"> 这 是 我 的 logo </p>
      <div class="main-gif">
          <div class="main-gif-title">动图展示</div>
          <img src="~@/assets/menu/1.gif" alt="">
      </div>
      <div class="main-img">
          <div class="main-img-title">logo展示</div>
          <img src="~@/assets/menu/2.jpg" alt="">
          <img src="~@/assets/menu/1.jpg" alt="">
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    methods:{

    },
}
</script>

<style scoped lang="less">
    // 让页面不显示滚动条
    ::-webkit-scrollbar {
        width: 0px;
    }
    .bg{
        width: 100vw;
        height: 100vh;
        overflow-y: scroll;
        color: black;
        background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
        background-size: 600% 600%;
        animation: gradientBG 5s ease infinite;

    }

    .title{
        font-size: 50px;
        text-align: center;
        padding: 30px 0;
        font-family: "JGFONT";
        color: white;
    }
    .main-gif{
        display: flex;
        flex-direction: column;
        align-items: center;

        .main-gif-title{
            width: 200px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            color: white;
            background-color: rgb(255, 149, 62);
            font-size: 20px;
            padding: 10px 0;
        }
        img{
            width: 50%;
            margin: 20px auto;
        }
    }
    .main-img{
        display: flex;
        flex-direction: column;
        align-items: center;
        .main-img-title{
            width: 200px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            color: white;
            background-color: rgb(255, 149, 62);
            font-size: 20px;
            padding: 10px 0;
        }
        img{
            width: 50%;
            margin: 20px auto;

        }
    }

  /* 动画，控制背景 background-position */
  @keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
  }
</style>